package behavior.visitor.impl;

import behavior.visitor.Visitor;

public class Charger extends Visitor {

	@Override
	public void visitor(WesternMedicine a) {
		System.out.println("划价员：" + name + "给药" + a.getName() + "划价:" + a.getPrice());
	}

	@Override
	public void visitor(ChineseMedicine b) {
		System.out.println("划价员：" + name + "给药" + b.getName() + "划价:" + b.getPrice());
	}

}
